//
//  ZZCAppService.swift
//  ewgShop
//
//  Created by zzc on 2019/8/12.
//  Copyright © 2019 zzc. All rights reserved.
//

import UIKit

class ZZCAppService: NSObject {
    
    
    @objc static let shared = ZZCAppService()
    
    
    @objc func currentViewController() -> UIViewController?{
        let vc = UIApplication.shared.delegate!.window!?.rootViewController
        return vc
    }
    
    
    @objc func currentViewControllerFrom(viewController : UIViewController)->UIViewController{
//        if viewController.isKind(of: UINavigationController.self){
//
//        }
        return UIViewController();
    }
    
    private override init() {
        super.init()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
